package org.middlewaregr.services;

public class ThesesServceProxy implements org.middlewaregr.services.ThesesServce {
  private String _endpoint = null;
  private org.middlewaregr.services.ThesesServce thesesServce = null;
  
  public ThesesServceProxy() {
    _initThesesServceProxy();
  }
  
  public ThesesServceProxy(String endpoint) {
    _endpoint = endpoint;
    _initThesesServceProxy();
  }
  
  private void _initThesesServceProxy() {
    try {
      thesesServce = (new org.middlewaregr.services.ThesesServceServiceLocator()).getThesesServcePort();
      if (thesesServce != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)thesesServce)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)thesesServce)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (thesesServce != null)
      ((javax.xml.rpc.Stub)thesesServce)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public org.middlewaregr.services.ThesesServce getThesesServce() {
    if (thesesServce == null)
      _initThesesServceProxy();
    return thesesServce;
  }
  
  public int createThesesReview(int arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, java.lang.String arg4, java.lang.String arg5, java.lang.String arg6, java.lang.String arg7, java.lang.String arg8, int arg9) throws java.rmi.RemoteException{
    if (thesesServce == null)
      _initThesesServceProxy();
    return thesesServce.createThesesReview(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
  }
  
  public int createThesesProposal(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, java.lang.String arg4, java.lang.String arg5, java.lang.String arg6, int arg7) throws java.rmi.RemoteException{
    if (thesesServce == null)
      _initThesesServceProxy();
    return thesesServce.createThesesProposal(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
  }
  
  public void updateProposalStatus(int arg0, java.lang.String arg1) throws java.rmi.RemoteException{
    if (thesesServce == null)
      _initThesesServceProxy();
    thesesServce.updateProposalStatus(arg0, arg1);
  }
  
  public void createCommentOnProposal(int arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3) throws java.rmi.RemoteException{
    if (thesesServce == null)
      _initThesesServceProxy();
    thesesServce.createCommentOnProposal(arg0, arg1, arg2, arg3);
  }
  
  public int createTheses(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, int arg4) throws java.rmi.RemoteException{
    if (thesesServce == null)
      _initThesesServceProxy();
    return thesesServce.createTheses(arg0, arg1, arg2, arg3, arg4);
  }
  
  
}